<template lang="html">
    <div class="homeSec">
        <header>
      <section>
        <router-link to="/home"><span class="homeSec_icon">&#xe6b0;</span></router-link></section>
      <h1>活动</h1>
    </header>
    	<div class="cont1" v-for=" item in items">
        	<div class="sec_catelog">{{ item.name }} </div>
        	<div class="cont_thr">
	        	<div class="thr_catelog" v-for=" con in item.thridCategory">
	        		<a href="javascript:void(0);">
	        			<img :src="con.icon"  alt="" />
	        			<div>{{ con.name }} </div>
	        		</a>
	        	</div>
        	</div>
    	</div>
    </div>
</template>

<script>


export default {
    data() {
    	return {
    		items: []
    	}
    },
    mounted() {
    	this.$http.get('http://localhost:8080/static/2.json').then(function(res){
    		this.items = res.body.data.categoryinfo;
    	})
    }
}
</script>

<style lang="css">
header{
    height: 1.2rem;
    width: 100%;
    position: fixed;
    top: 0;
    background-color: #0093e7;
    line-height: 1.7;
    min-height: 1.25333rem;
    z-index: 2;
}
header h1{
    font-size: .48rem;
    font-weight: normal;
    text-align: center;
    color: #fff;
    line-height: 1.2;
    padding-top: .32rem;
}
.homeSec_icon{
    font-family: 'iconfont'; 
    position: absolute;
    left:.1333rem;
    font-size:.88rem;
    color: #fff;
    line-height: 1.2rem;
}
.cont1{
    margin: 1.2rem 0 2rem .5rem;
}
</style>
